package com.neusoft.restaurant.config.utils;


import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author: zhongda
 * @createTime: 2023/11/24 15:33
 * @email: fromzhongda@163.com
 * @description:
 */

@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {

//    @Override
//    public void configure(WebSecurity web) throws Exception {
//        //ignore
//        web.ignoring().antMatchers("/api/**","/css","/html");
//    }

    @Override
    public void configure(WebSecurity web) throws Exception {
        //ignore all api
        web.ignoring().antMatchers("/**","/css","/html");
    }
}
